/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.Puntaje;

/**
 * The persistence interface for the Puntaje service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see PuntajePersistenceImpl
 * @see PuntajeUtil
 * @generated
 */
public interface PuntajePersistence extends BasePersistence<Puntaje> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link PuntajeUtil} to access the Puntaje persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the Puntaje in the entity cache if it is enabled.
	*
	* @param puntaje the Puntaje
	*/
	public void cacheResult(slcu.model.Puntaje puntaje);

	/**
	* Caches the Puntajes in the entity cache if it is enabled.
	*
	* @param puntajes the Puntajes
	*/
	public void cacheResult(java.util.List<slcu.model.Puntaje> puntajes);

	/**
	* Creates a new Puntaje with the primary key. Does not add the Puntaje to the database.
	*
	* @param puntajeId the primary key for the new Puntaje
	* @return the new Puntaje
	*/
	public slcu.model.Puntaje create(long puntajeId);

	/**
	* Removes the Puntaje with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param puntajeId the primary key of the Puntaje
	* @return the Puntaje that was removed
	* @throws slcu.NoSuchPuntajeException if a Puntaje with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje remove(long puntajeId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPuntajeException;

	public slcu.model.Puntaje updateImpl(slcu.model.Puntaje puntaje,
		boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Puntaje with the primary key or throws a {@link slcu.NoSuchPuntajeException} if it could not be found.
	*
	* @param puntajeId the primary key of the Puntaje
	* @return the Puntaje
	* @throws slcu.NoSuchPuntajeException if a Puntaje with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje findByPrimaryKey(long puntajeId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPuntajeException;

	/**
	* Returns the Puntaje with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param puntajeId the primary key of the Puntaje
	* @return the Puntaje, or <code>null</code> if a Puntaje with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje fetchByPrimaryKey(long puntajeId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the Puntajes where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @return the matching Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findByPartidoId(long partidoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Puntajes where partidoId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param partidoId the partido ID
	* @param start the lower bound of the range of Puntajes
	* @param end the upper bound of the range of Puntajes (not inclusive)
	* @return the range of matching Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findByPartidoId(long partidoId,
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Puntajes where partidoId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param partidoId the partido ID
	* @param start the lower bound of the range of Puntajes
	* @param end the upper bound of the range of Puntajes (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findByPartidoId(long partidoId,
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first Puntaje in the ordered set where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Puntaje
	* @throws slcu.NoSuchPuntajeException if a matching Puntaje could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje findByPartidoId_First(long partidoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPuntajeException;

	/**
	* Returns the first Puntaje in the ordered set where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching Puntaje, or <code>null</code> if a matching Puntaje could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje fetchByPartidoId_First(long partidoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last Puntaje in the ordered set where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Puntaje
	* @throws slcu.NoSuchPuntajeException if a matching Puntaje could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje findByPartidoId_Last(long partidoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPuntajeException;

	/**
	* Returns the last Puntaje in the ordered set where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching Puntaje, or <code>null</code> if a matching Puntaje could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje fetchByPartidoId_Last(long partidoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the Puntajes before and after the current Puntaje in the ordered set where partidoId = &#63;.
	*
	* @param puntajeId the primary key of the current Puntaje
	* @param partidoId the partido ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next Puntaje
	* @throws slcu.NoSuchPuntajeException if a Puntaje with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.Puntaje[] findByPartidoId_PrevAndNext(long puntajeId,
		long partidoId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchPuntajeException;

	/**
	* Returns all the Puntajes.
	*
	* @return the Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the Puntajes.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Puntajes
	* @param end the upper bound of the range of Puntajes (not inclusive)
	* @return the range of Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findAll(int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the Puntajes.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of Puntajes
	* @param end the upper bound of the range of Puntajes (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.Puntaje> findAll(int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Puntajes where partidoId = &#63; from the database.
	*
	* @param partidoId the partido ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeByPartidoId(long partidoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the Puntajes from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Puntajes where partidoId = &#63;.
	*
	* @param partidoId the partido ID
	* @return the number of matching Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public int countByPartidoId(long partidoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of Puntajes.
	*
	* @return the number of Puntajes
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}